package com.segersten.othello.service.akka.lobby;

import java.util.ArrayList;
import java.util.List;

public class LobbyState {

	Ticket ticket;
	List<Game> games;

	public LobbyState() {
	}

	public LobbyState(Ticket ticket, List<Game> games) {

		this.ticket = ticket;
		this.games = games == null ? new ArrayList<Game>() : games;
	}

	public Ticket getTicket() {
		return ticket;
	}

	public void setTicket(Ticket ticket) {
		this.ticket = ticket;
	}

	public List<Game> getGames() {
		return games == null ? new ArrayList<Game>() : games;
	}

	public void setGames(List<Game> games) {
		this.games = games;
	}

	@Override
	public String toString() {
		return "LobbyState [ticket=" + ticket + ", games=" + games + "]";
	}

}
